﻿using System.ComponentModel.DataAnnotations;

namespace BankTransfer.Bank.Types.Types
{
    public class AccountId
    {
        private readonly long value;
        public long Value => value;

        public AccountId(long value)
        {
            if (value <= 0)
            {
                throw new ValidationException("AccountId 要大于0！");
            }
            this.value = value;
        }
    }
}